package com.zb777.shuzhilingxi.service;

import com.zb777.shuzhilingxi.Pojo.entity.ChatHistoryDetail;
import com.zb777.shuzhilingxi.Pojo.entity.ChatHistoryList;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author redaiyu
 * @since 2025-07-13
 */
public interface IChatHistoryListService extends IService<ChatHistoryList> {
    // 创建聊天列表
    ChatHistoryList createChatList(ChatHistoryList chatHistoryList);

    // 删除聊天列表
    void deleteChatList(Integer listId);

    // 编辑聊天列表名称
    void editChatList(Integer listId, ChatHistoryList chatHistoryList);

    // 删除聊天详情
    void deleteChatDetail(Integer detailId);

    // 编辑聊天详情
    ChatHistoryDetail editChatDetail(Integer detailId, ChatHistoryDetail chatHistoryDetail);

    // 获取当前用户的所有聊天列表
    List<ChatHistoryList> getChatLists();

    // 获取指定列表的聊天详情
    List<ChatHistoryDetail> getChatDetails(Integer listId);
}
